package cn.itsource.rate;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RateLimitBeanConfig {



	@Bean
	@ConditionalOnMissingBean(RateLimitService.class)
	public RateLimitService rateLimitService() {
		DefaultRateLimitServiceImpl defaultRateLimitServiceImpl = new DefaultRateLimitServiceImpl();
		return defaultRateLimitServiceImpl;
	}
}
